package com.bupt.godxian.charging.config;

import lombok.Data;

import java.util.List;
import java.util.Map;

//@Data注解，用于自动生成类的一些常用方法，如 getter、setter、equals、hashCode、toString 等
@Data
public class CommonResponse {
    private int code;//状态码（成功0，失败-1）
    private String message;//响应消息 success
    private Object data;//响应数据体


    public CommonResponse(int code, String message, Map<String, Object> chargeResponseData) {
        this.code=code;
        this.message=message;
        this.data=chargeResponseData;
    }

    public CommonResponse(int code, String message, List<Map<String, Object>> reportList) {
        this.code=code;
        this.message=message;
        this.data=reportList;
    }
    public CommonResponse(int code, String message) {
        this.code=code;
        this.message=message;

    }


}
